<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <alert-box>我是 super man</alert-box>
</div>

<script>
    const vueOpt = {
        data() {
            return {}
        }
    }

    const app = Vue.createApp(vueOpt);
    app.component('alert-box', {
        data() {
            return {}
        },

        template: `
            <div class="wrapper">
                <span>Error:</span>
                <slot></slot>
            </div>
        `
    })
    app.mount('#app');
</script>
</body>
</html>
